//
//  ViewController.m
//  UIApplication
//
//  Created by hyl on 16/6/8.
//  Copyright © 2016年 hyl. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (nonatomic,strong) UIApplication *app;
@end

@implementation ViewController
- (IBAction)openURLClick:(UIButton *)sender {
    //打开其它应用程序
    NSURL *url=[NSURL URLWithString:@"http://www.baidu.com"];
    [self.app openURL:url];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    //singleton
    self.app=[UIApplication sharedApplication];
    //提示信息（类似QQ信息提示）
    self.app.applicationIconBadgeNumber=20;
    UIUserNotificationSettings *settings=[UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge categories:nil];
    [self.app registerUserNotificationSettings:settings];

    
    //导航显示与隐藏
    self.app.statusBarHidden=YES;
    
    //Memory
}



@end
